package service

import (
	"go_code/gin-blog/dao/db"
	"go_code/gin-blog/model"
)

func GetLeaveList() ([]*model.Leave, error) {
	leaveList, err := db.GetAllLeave()
	if err != nil {
		return nil, err
	}
	return leaveList, nil
}
